import {
	http,
	toast
} from '@/uni_modules/uview-plus'

// 登陆
export const login = (params, config = {}) => http.post('/learning/user/login', params, config)

// 获取地址
export const region = (params, config = {}) => http.post('/learning/user/region', params, config)

// 注冊
export const register = (params, config = {}) => http.post('/learning/user/register', params, config)

// 考试列表
export const testList = (params, config = {}) => http.post('/learning/TestPaper/list', params, config)

// 考试详情
export const testInfo = (params, config = {}) => http.post('/learning/TestPaper/info', params, config)

// 开始考试
export const startTest = (params, config = {}) => http.post('/learning/TestPaper/start', params, config)

// 每道题提交
export const subQuestion = (params, config = {}) => http.post('/learning/TestPaper/subQuestion', params, config)

// 考题提交（考试结束提交）
export const finishTurn = (params, config = {}) => http.post('/learning/TestPaper/turn', params, config)

// 考试成绩列表
export const finishList = (params, config = {}) => http.post('/learning/TestPaperRes/list', params, config)

// 考试成绩列表详情
export const finishInfo = (params, config = {}) => http.post('/learning/TestPaperRes/info', params, config)

// 错题集
export const errorList = (params, config = {}) => http.post('/learning/TestPaperRes/errorList', params, config)

// 错题集詳情
export const errorInfo = (params, config = {}) => http.post('/learning/TestPaperRes/errorInfo', params, config)

// 错题练习
export const errorTestList = (params, config = {}) => http.post('/learning/TestPaperRes/errorTestList', params, config)

// 提交错题
export const correction = (params, config = {}) => http.post('/learning/TestPaperRes/correction', params, config)

//用户基本信息
export const myInfo = (params, config = {}) => http.post('/learning/Member/info', params, config)

// 视频列表
export const videoList = (params, config = {}) => http.post('/learning/SpecialVideo/list', params, config)

// 视频详情
export const videoInfo = (params, config = {}) => http.post('/learning/SpecialVideo/videoInfo', params, config)

// 开始学习视频
export const videoStart = (params, config = {}) => http.post('/learning/SpecialVideo/start', params, config)

// 开始学习视频
export const learningList = (params, config = {}) => http.post('/learning/SpecialVideo/learningList', params, config)

// 消息列表
export const messageList = (params, config = {}) => http.post('/learning/Member/messageList', params, config)

// 消息详情
export const messageInfo = (params, config = {}) => http.post('/learning/Member/messageInfo', params, config)

// 未读消息数量
export const messageUnread = (params, config = {}) => http.post('/learning/Member/messageUnread', params, config)

// 修改密码
export const forPassword = (params, config = {}) => http.post('/learning/Member/forPassword', params, config)